import { inject, observer } from 'mobx-react';
import { WeaTools } from 'ecCom';
import BaseList from '../BaseList';
import * as Rctt from '../../constants/BaseListConstant';
import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;

@inject('productReportListStore')
@observer
class ProductReportList extends BaseList {
  getStore() {
    return this.props.productReportListStore;
  }

  getTabSearchTypes(store) {
    const arr = [];
    arr.push(Rctt.TAB_SEARCH_TYPE_BASE);
    arr.push(Rctt.TAB_SEARCH_TYPE_ADVANCED);
    return arr;
  }
}

export default WeaTools.tryCatch(React, props => <WeaErrorPage ecId={`${this && this.props && this.props.ecId || ''}_WeaErrorPage@tb4k2z`} msg={props.error ? props.error : getLabel(129417, '服务器运行出错，请联系系统管理员！')} />, { error: '' })(ProductReportList);
